<template>
	<div class='main_div'>
		<HeaderVue />
		<div class="navigate">
			<RouterLink class="link" active-class="active-link" to="/home">首页</RouterLink>
			<RouterLink class="link" active-class="active-link" to="/news">新闻</RouterLink>
			<RouterLink class="link" active-class="active-link" to="/abouts">关于</RouterLink>
		</div>
		<div class="content">
			<RouterView></RouterView>
		</div>
	</div>
</template>
<script lang="ts" setup>
import HeaderVue from '@/components/Header.vue'
import { RouterView, RouterLink } from 'vue-router'
</script>
<style>
.main_div {
	position: absolute;
	width: 99%;
	height: 90%;
}

.navigate {
	margin: 0 auto;
	display: flex;
	flex-direction: row;
	align-items: center;
	justify-content: center;
}

.link {
	width: 100px;
	height: 20px;
	background-color: gray;
	text-align: center;
	padding: 5px;
	justify-items: center;
	margin: 1px;
	color: #ffffff;
	border-radius: 10px;
	text-decoration: none;
}

.active-link{
	background-color: green;
	color:gold
}

.content {
	width: 100%;
	height: 60%;
	border:1px solid red;
	border-radius: 5px;
}
</style>